<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:include href="navegacion.xsl" />
	<xsl:include href="controles.xsl" />
	<xsl:include href="secciones.xsl" />
	<xsl:include href="partes-detalle.xsl" />
	
	<xsl:template match='/'>
		<html>
		<head>
			<link href="estilo/e-comerciales.css" rel="stylesheet" type="text/css"></link>
			<title>Detalle de <xsl:value-of select="//@Titulo" /></title>
			<script language="javascript1.2" src="../Interfaz/Scripts/busca-combo.js"></script>
		</head>
			<body>
				<xsl:call-template name="logo" />
				<xsl:call-template name="membrete" />
				<xsl:call-template name="divisor-horizontal" />
				<xsl:apply-templates />
			</body>
		</html>
	</xsl:template>
	
	<xsl:template match="Consulta" name="consultas">
		<div id="contenido" align="center">
		<script type="text/javascript" src="Scripts/requerido.js"></script>
		<div id="titulo">Detalle de <xsl:value-of select="//@Titulo"></xsl:value-of></div>
		<xsl:for-each select="Fila">
			<form>
			<xsl:attribute name="name"><xsl:value-of select="//Consulta/@op"/></xsl:attribute>
			<xsl:attribute name="action"><xsl:value-of select="//Consulta/@url"/></xsl:attribute>
			<xsl:attribute name="method">POST</xsl:attribute>
			<xsl:attribute name="onsubmit">return validar()</xsl:attribute>
			
			<table class="tabla-contenido" border="1">
				<tr class="encabezado-tabla"><td colspan="3"><a>
			<xsl:attribute name="href"><xsl:value-of select="concat(//Consulta/@Nombre, '.php')"></xsl:value-of></xsl:attribute>
			Volver
			</a></td></tr>
				<xsl:for-each select="Columna">
					<xsl:call-template name="fila-detalle" />
				</xsl:for-each>
				<xsl:call-template name="pie" />
			</table>
			</form>
		</xsl:for-each>
		</div>
	</xsl:template>	
		
</xsl:stylesheet>